﻿module LanguageFeature 
    let f = fun x -> (x - 1) * x * (x + 1)
    let y = f 5


    let Statistic_stuff() =
        let s = [|9.6;7.5;10.2;11.8;7.8;6.4;12.8;10.7|]
        let avg = Array.average(s)
        let var = sqrt(Array.sumBy(fun x -> (x - avg) * (x - avg)) s)
        printfn "avg : %f" avg
        printfn "var : %f" var


    let rec fib n =
        if n <= 2 then 1
        else fib (n - 1) + fib (n - 2)

